package YHTriangle;

import java.util.ArrayList;

public class test {
    public static void main(String[] args) {
        Triangle triangle = new Triangle();
        ArrayList<ArrayList<Integer>> ret = triangle.fun(5);
        for (int i = 0; i <ret.size() ; i++) {
            ArrayList<Integer> now  = ret.get(i);
            for (int j = 0; j <now.size() ; j++) {
                System.out.print(now.get(j)+" ");
            }
            System.out.println();
        }
    }
}
